import request from '@/utils/request'

/**
 * 发货单表分页查询
 * @param {查询条件} data
 */
export function listCorecmsbilldelivery(query) {
  return request({
    url: 'order/Corecmsbilldelivery/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增发货单表
 * @param data
 */
export function addCorecmsbilldelivery(data) {
  return request({
    url: 'order/Corecmsbilldelivery',
    method: 'post',
    data: data,
  })
}
/**
 * 修改发货单表
 * @param data
 */
export function updateCorecmsbilldelivery(data) {
  return request({
    url: 'order/Corecmsbilldelivery',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取发货单表详情
 * @param {Id}
 */
export function getCorecmsbilldelivery(id) {
  return request({
    url: 'order/Corecmsbilldelivery/' + id,
    method: 'get'
  })
}

/**
 * 删除发货单表
 * @param {主键} pid
 */
export function delCorecmsbilldelivery(pid) {
  return request({
    url: 'order/Corecmsbilldelivery/delete/' + pid,
    method: 'POST'
  })
}
